﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Client.ViewModel;

namespace Client
{
    /// <summary>
    /// PittingGraph.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class PittingGraph : UserControl
    {
        MainViewModel vm;
        public PittingGraph()
        {
            InitializeComponent();
            vm = DataContext as MainViewModel;
        }

        private void Left1_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(0);
        }
        private void Left2_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(1);
        }
        private void Left3_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(2);
        }
        private void Left4_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(3);
        }
        private void Left5_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(4);
        }
        private void Left6_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Left_Checked(5);
        }

        private void Right1_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(0);
        }
        private void Right2_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(1);
        }
        private void Right3_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(2);
        }
        private void Right4_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(3);
        }
        private void Right5_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(4);
        }
        private void Right6_Checked(object sender, RoutedEventArgs e)
        {
            if (vm != null) vm.Right_Checked(5);
        }
    }
}
